export function getCurrentDate(type: number) {
  const date = new Date()
  const year = date.getFullYear()
  const mon = date.getMonth() + 1
  const day = date.getDate()
  const hour = date.getHours()
  const mins = date.getMinutes()
  const seconds = date.getSeconds()
  let mon1 = `${mon}'-'`
  if (mon < 10) {
    mon1 = `0${mon}'-'`
  }
  if (type === 1) {
    return `${year}-${mon1}${day} ${hour}:${mins}:${seconds}`
  }
  return `${year}-${mon1}${day} 07:30:00`
}
